﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;

namespace jbgswin
{
    public partial class localsave : PhoneApplicationPage
    {
        public localsave()
        {
            InitializeComponent();
            ncct.Text = App.myditu.Count.ToString() + "条";
          //  App.lcalcut = mk.frmlocal1().Count();
            fwqct.Text = App.lcalcut.ToString() + "条";
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            mk.savetolocal(App.myditu);
            App.lcalcut = mk.frmlocal1().Count();
            fwqct.Text = App.lcalcut.ToString() + "条";
        }

        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            App.myditu = mk.frmlocal1();
            ncct.Text = App.myditu.Count.ToString() + "条";
        }

        private void Button_Click_2(object sender, RoutedEventArgs e)
        {
            mk.savetolocal(new List<dituwz>());
            App.lcalcut = mk.frmlocal1().Count();
            fwqct.Text = App.lcalcut.ToString() + "条";
        }

        private void Button_Click_3(object sender, RoutedEventArgs e)
        {
            App.lcalcut = mk.frmlocal1().Count();
            fwqct.Text = App.lcalcut.ToString() + "条";
        }
    }
}